package com.qcby.service.Impl;

import com.qcby.dao.AdmTeacherMapper;
import com.qcby.entity.Admteacher;
import com.qcby.service.AdmTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 阿笙
 */
@Service("admTeacherService")
public class AdmTeacherServiceImpl implements AdmTeacherService {
    @Autowired
    private AdmTeacherMapper teacherMapper;

    @Override
    public List<Admteacher> findTeacher() {
        return teacherMapper.findTeacher();
    }

    @Override
    public int deleteTea(Integer id) {
        return teacherMapper.deleteTea(id);
    }

    @Override
    public List<Admteacher> teaFind(String teacher) {
        return teacherMapper.teaFind(teacher);
    }

    @Override
    public int insert(Admteacher record) {
        return teacherMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(Admteacher teacher) {
        return teacherMapper.updateByPrimaryKey(teacher);
    }

    @Override
    public List<Admteacher> selectById(Integer id) {
        return teacherMapper.selectById(id);
    }
}
